package com.tyk.bookstore.front.member.model.query;

import com.tyk.bookstore.front.member.model.enume.MemberCenterUpdateType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;


@Data
public class PhoneCode4CenterCheckQuery {

    @Pattern(regexp = "^[A-Za-z0-9]+$")
    @NotBlank
    @Schema(description = "验证码")
    @Size(min = 6, max = 6)
    private String code;

    @NotNull
    @Schema(description = "验证码更新用途[0手机号,1邮箱,2登录密码,3支付密码,4身份证]")
    private MemberCenterUpdateType type;
}
